﻿namespace FlexPlatform.Shared.Events
{
    /// <summary>
    /// The interface for all the information exposed by BeforeProperyChange event.
    /// </summary>
    internal interface IBeforeProperyChangeEventArgs: ICancellableEventArgs
    {
        /// <summary>
        /// Gets the property name.
        /// </summary>
        string PropertyName { get; }

        /// <summary>
        /// Gest the current value of the property.
        /// </summary>
        dynamic CurrentValue { get; }

        /// <summary>
        /// Gets the proposed new value for the property.
        /// </summary>
        dynamic ProposedValue { get; }
    }
}
